package tech.aistar.corejava.day12.homework07;

import java.util.Date;

/**
 * Created by 豆梦寒 on 2019/8/1.
 */
public class Customer {
    private int id;
    private String name;
    private String number;
    private boolean sex;
    private String account;
    private Date date;
    private double money;

    public Customer() {
    }

    public Customer(int id, String name, String number, boolean sex, String account, Date date, double money) {
        this.id = id;
        this.name = name;
        this.number = number;
        this.sex = sex;
        this.account = account;
        this.date = date;
        this.money = money;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public boolean getSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Customer{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", number='").append(number).append('\'');
        sb.append(", sex=").append(sex);
        sb.append(", account='").append(account).append('\'');
        sb.append(", date=").append(date);
        sb.append(", money=").append(money);
        sb.append('}');
        return sb.toString();
    }
}
